package com.service.business.merchant.controller.req;

import com.service.dao.enums.CoinsEnum;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
public class CommodityPriceAddReq {

    @NotNull(message = "merchant_commodity_exception_coin_not_blank")
    private CoinsEnum coin;

    @NotNull(message = "merchant_commodity_exception_price_not_blank")
    @Min(value = 0, message = "merchant_commodity_exception_price_not_less_then_zero")
    private BigDecimal price;

    @NotNull(message = "merchant_commodity_exception_language_not_blank")
    private String localLanguage;

}
